package com.sc.nft.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dao.CatenaInfoDao;
import com.sc.nft.entity.CatenaInfo;
import com.sc.nft.entity.vo.SeriesListVO;
import com.sc.nft.service.CatenaInfoService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务接口实现
 *
 * @author Sun
 * @since 2022-05-30 13:22:00
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class CatenaInfoSexrviceImpl implements CatenaInfoService {
    private final CatenaInfoDao catenaInfoDao;

    @Override
    public List<CatenaInfo> seriesList(Integer type) {

        return catenaInfoDao.seriesList(type);
    }

    @Override
    public Page<CatenaInfo> catenaList(int pageNo, int pageSize, String name) {
        return catenaInfoDao.catenaList(pageNo,pageSize,name);
    }
}